using System.Collections.Generic;

namespace Core.DataAccess.Interfaces
{
    //Common interface to all data providers
    public interface IModelDataProvider<T>
    {
        IList<T> GetAll();
        T Save(T entity);
        T Get<U>(U id);
        T Update(T entity);
        void Delete<U>(U id);
    }
}